package com.lagou.edu.utils;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

/**
 * @ClassName: LogUtils2
 * @Description: 自测用切入逻辑类
 * @Date: 2021/3/8 20:54
 * @Create by: shuiren
 */
@Component
@Aspect
public class LogUtils2 {

    public void beforeMethod(JoinPoint joinPoint) {
        Object[] args = joinPoint.getArgs();
        for (Object arg : args) {
            System.out.println(arg.toString());
        }
        System.out.println("业务逻辑开始执行之前执行.......");
    }


    public Object arroundMethod(ProceedingJoinPoint proceedingJoinPoint) throws Throwable {

        Object proceed = proceedingJoinPoint.proceed();

        return null;
    }

}
